projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0c72bd
)
inspector: Fix css autosave
author
Matthias Clasen
<mclasen@redhat.com>
Thu, 11 Apr 2019 23:16:07 +0000
(19:16 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Thu, 11 Apr 2019 23:39:44 +0000
(19:39 -0400)
We were creating the directory with improper permissions.
gtk/inspector/css-editor.c
patch
|
blob
|
history
diff --git
a/gtk/inspector/css-editor.c
b/gtk/inspector/css-editor.c
index d8d11efa9e854b7d8ae9649f68695721dbe13210..e28eb8acb625eddd2bced6e3801564670488af46 100644
(file)
--- a/
gtk/inspector/css-editor.c
+++ b/
gtk/inspector/css-editor.c
@@
-144,7
+144,7
@@
autosave_contents (GtkInspectorCssEditor *ce)
contents = gtk_text_buffer_get_text (GTK_TEXT_BUFFER (ce->priv->text), &start, &end, TRUE);
autosave_file = get_autosave_path ();
dir = g_path_get_dirname (autosave_file);
- g_mkdir_with_parents (dir,
600
);
+ g_mkdir_with_parents (dir,
0755
);
g_file_set_contents (autosave_file, contents, -1, NULL);
g_free (dir);